<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="com.api.browser.bean.SearchConditionOption" %>
<%@ page import="com.engine.hrm.biz.HrmClassifiedProtectionBiz" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.hrm.HrmUserVarify" %>
<%@ page import="weaver.hrm.User" %>
<%@ page import="java.util.List" %>
<%--获取流水号--%>
<%
    User user = HrmUserVarify.getUser(request, response);
    JSONObject jsonData = new JSONObject();
    String userid = Util.null2String(request.getParameter("userid"));
    HrmClassifiedProtectionBiz hrmClassifiedProtectionBiz = new HrmClassifiedProtectionBiz();
    List<SearchConditionOption> list = hrmClassifiedProtectionBiz.getOptionListByUserId(userid, "" + user.getLanguage());
    for (SearchConditionOption option : list) {
        if(option.isSelected()){
            jsonData.put("classification", option.getShowname());
            break;
        }
    }
    out.print(jsonData.toJSONString());
%>
